package com.wj.auth.infrastrcture.entity;


import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * s_user 实体类
 * Thu Nov 12 10:57:10 CST 2020 wj
 */ 

@Entity
@Table(name = "s_user", schema = "cloud-demo", catalog = "")
public class SUserEntity {
	
	/**
	* id
	*/ 
	@ApiModelProperty(value = "id")
	private Long id;
	
	/**
	* username
	*/ 
	@ApiModelProperty(value = "username")
	private String username;
	
	/**
	* password
	*/ 
	@ApiModelProperty(value = "password")
	private String password;
	
	/**
	* real_name
	*/ 
	@ApiModelProperty(value = "real_name")
	private String realName;
	
	/**
	* sex
	*/ 
	@ApiModelProperty(value = "sex")
	private String sex;
	
	/**
	* phone
	*/ 
	@ApiModelProperty(value = "phone")
	private String phone;
	
	/**
	* id_card
	*/ 
	@ApiModelProperty(value = "id_card")
	private String idCard;
	
	/**
	* create_time
	*/ 
	@ApiModelProperty(value = "create_time")
	private Date createTime;
	
	/**
	* create_user
	*/ 
	@ApiModelProperty(value = "create_user")
	private Long createUser;
	
	/**
	* update_time
	*/ 
	@ApiModelProperty(value = "update_time")
	private Date updateTime;
	
	/**
	* update_user
	*/ 
	@ApiModelProperty(value = "update_user")
	private Long updateUser;
	
	/**
	* deleted
	*/ 
	@ApiModelProperty(value = "deleted")
	private Boolean deleted;

	@ApiModelProperty(value = "status")
	private Integer status;

	@Id
	@Column(name="id")
	public Long getId(){
		return id;
	}

	public void setId(Long id){
		this.id = id;
	}

	@Column(name="username")
	public String getUsername(){
		return username;
	}

	public void setUsername(String username){
		this.username = username;
	}

	@Column(name="password")
	public String getPassword(){
		return password;
	}

	public void setPassword(String password){
		this.password = password;
	}

	@Column(name="real_name")
	public String getRealName(){
		return realName;
	}

	public void setRealName(String realName){
		this.realName = realName;
	}

	@Column(name="sex")
	public String getSex(){
		return sex;
	}

	public void setSex(String sex){
		this.sex = sex;
	}

	@Column(name="phone")
	public String getPhone(){
		return phone;
	}

	public void setPhone(String phone){
		this.phone = phone;
	}

	@Column(name="id_card")
	public String getIdCard(){
		return idCard;
	}

	public void setIdCard(String idCard){
		this.idCard = idCard;
	}

	@Column(name="create_time")
	public Date getCreateTime(){
		return createTime;
	}

	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}

	@Column(name="create_user")
	public Long getCreateUser(){
		return createUser;
	}

	public void setCreateUser(Long createUser){
		this.createUser = createUser;
	}

	@Column(name="update_time")
	public Date getUpdateTime(){
		return updateTime;
	}

	public void setUpdateTime(Date updateTime){
		this.updateTime = updateTime;
	}

	@Column(name="update_user")
	public Long getUpdateUser(){
		return updateUser;
	}

	public void setUpdateUser(Long updateUser){
		this.updateUser = updateUser;
	}

	@Column(name="deleted")
	public Boolean getDeleted(){
		return deleted;
	}

	public void setDeleted(Boolean deleted){
		this.deleted = deleted;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}

